package com.fhz.day003.index;

import androidx.lifecycle.LiveData;

import com.fhz.day003.mvvm.BaseViewModel;
import com.fhz.day003.utils.ApiResponse;
import com.fhz.day003.utils.GoodsApi;
import com.fhz.day003.utils.RetrofitManager;

import java.util.List;

/**
 * 时间:2022/3/22
 *
 * @author msfeng
 * 简述: TODO
 */
public class IndexViewModel extends BaseViewModel<IndexRepositroy> {

    public IndexViewModel(IndexRepositroy repository) {
        super(repository);
    }

    public LiveData<ApiResponse<List<Banner>>> getBanner(){
        return repository.getBanner();
    }
}


